const Mock = require('mockjs')
const Random = Mock.Random
//区划选择信息mock
Mock.mock(/\/khxxyzjg\/getArea/, 'get', {
  msg: 'success',
  code: 0,
  'data|5-10': [
    {
      "qhdm|4101-4199": 4101,
      "qhmc|1": ['郑州市', '商丘市', '信阳市']
    }
  ]
})
//客户信息验证详情mock
Mock.mock(/\/khxx\/getKhcjxx1/, 'post', {
  msg: 'success',
  code: 0,
  data: {
    dbKhxx: {
      "id": "1",
      "qhdm": "410325",
      "qhmc": "嵩县",
      "name": "张山",
      "idcode": "4128221991061911121",    //身份证号
      "ifMarried": "0",       //是否已婚0未婚1已婚
      "xnzttype": "01",       //经营主体信息类型
      "xnzttype": "合作社",       //经营主体信息
      "createTime": "2020-12-16",    
      "xmbm": "zs202012160001",    //项目编码
      "state": 2,         //1保存2提交
      "nf": "2020",       //年份
      "text": null
    },
    "jtcyxxList": [      //家庭成员信息
      {
          "id": "1",
          "idcode": "4128221991061911121",
          "gxdm": "20",        //成员关系
          "gxmc": "子",        //成员关系名称
          "gxname": "王磊",    //成员姓名
          "gxidCode": "4128222020114214124",    //成员身份证号
          "nf": "2020",
          "bz": null,
          "xmbm": "zs202012160001"
      },
      {
          "id": "2",
          "idcode": "4128221991061911121",
          "gxdm": "30",
          "gxmc": "女",
          "gxname": "王一一",
          "gxidCode": "4128221991043154545",
          "nf": "2020",
          "bz": null,
          "xmbm": "zs202012160001"
      }
    ],
    "zzxxList": [       //种植信息
        {
            "id": "1",
            "idcode": "4128221991061911121", 
            "zzdm": "03",         //种植类型
            "zzmc": "水稻",        //种植类型名称
            "mj": 200,            //面积
            "nf": "2020",
            "xmbm": "zs202012160001"
        }
    ],
    "yzxxList": [       //养殖信息
        {
            "id": "1",
            "idcode": "4128221991061911121",
            "yzdm": "01",       //养殖类型
            "yzmc": "小牛",      //养殖类型名称
            "sl": 1,        //养殖数量
            "nf": "2020", 
            "xmbm": "zs202012160001"
        }
    ],
    "dhlzxxList": [    //大户流转信息
      {
        "id": "1",
        "idcode": "4128221991061911121",
        "zbfname": "王大致",      //大户姓名
        "zbfidCode": "412822198801234221",   //大户身份证号
        "lzmj": 10,      //流转面积
        "bz": null,
        "nf": "2020",
        "xmbm": "zs202012160001"
      },
      {
          "id": "2",
          "idcode": "4128221991061911121",
          "zbfname": "王天天",
          "zbfidCode": "412822197820201231",
          "lzmj": 30,
          "bz": null,
          "nf": "2020",
          "xmbm": "zs202012160001"
      },
      {
          "id": "3",
          "idcode": "4128221991061911121",
          "zbfname": "王一",
          "zbfidCode": "412822197820201231",
          "lzmj": 20,
          "bz": null,
          "nf": "2020",
          "xmbm": "zs202012160001"
      },
    ],
    "zpsxList": [  //照片属性
      {
        "id": "1",
        "idcode": "4128221991061911121",
        "zpcode": "zs202012160001",//照片编码
        "zytype": "01",      //01种植02养殖
        "url": "https://ram-hndhi-test.oss-cn-zhangjiakou.aliyuncs.com/2020/12/09/0ccf581b9ba84d2d8467e9e1911fb46f-1607480486757.jpg",     //图片路径
        "qhdm": "410325",
        "qhmc": "嵩县",
        "xCoordinate": null,
        "createTime": "2020-12-17",
        "nf": "2020",
        "yCoordinate": null,
        "xmbm": "zs202012160001",
        "shape": null,
        "xyCoordinate": "{\"type\":\"Point\",\"coordinates\":[112.037480598874,34.0046571780094]}"      //图片空间坐标
      }
    ],
    "khdkxxList": [     //担保地块信息集合（zytype为01是种植，为02是养殖）
      {
          "id": "1315203",
          "qhdm": "410325100200",
          "qhmc": "上仓村",
          "zytype": "01",
          "dkbm": "4103251002000098",   //地块编码
          "mj": 20.3,     //地块面积
          "dkmc": null,
          "nf": "2020",
          "name": "张山",
          "idcode": "4128221991061911121",
          "xmbm": "zs202012160001",
          "xyCoordinate": null,
          "provincecode": "41",
          "citycode": "4103",
          "countycode": "410325",
          "towncode": "410325100",
          "shape": {
              "type": "geometry",
              "value": "0106000020E6100000010000000103000000010000000600000070A4DD9C75055C4008DA00B3D512414098998CDC73055C4058051957D512414028676C7872055C40788DCD63D4124140609D186974055C40A8AE7894D1124140704D195676055C40E8E9C95AD512414070A4DD9C75055C4008DA00B3D5124140"
          },
          "shape1": null,
          "zmj": null,
          "dksl": 0,
          "dkbms": null,
          "modified_time": null,
          "createTime": null
      },
      {
          "id": "1311308",
          "qhdm": "410325100200",
          "qhmc": "上仓村",
          "zytype": "02",
          "yzcbm": "4103251002000041",
          "mj": 21.21,
          "dkmc": null,
          "nf": "2020",
          "name": "张山",
          "idcode": "4128221991061911121",
          "xmbm": "zs202012160001",
          "xyCoordinate": null,
          "provincecode": "41",
          "citycode": "4103",
          "countycode": "410325",
          "towncode": "410325100",
          "shape": {
              "type": "geometry",
              "value": "0106000020E6100000010000000103000000010000001000000060A50E3457055C4050A369532C134140D0152D2C57055C40986E791C2E13414000C35C3958055C40481AAA0932134140A8405BAB56055C4038C36A1F37134140680BA7F053055C40A886248A3B13414090996D3C52055C4098A471963C134140C8BFCFB850055C40907CE49740134140F0950FC74E055C40B8333FB04313414078506E4D4D055C40A8C4DE264413414068E1D5864B055C40606DF4ED41134140F830A6C64F055C40C89F52D93B134140780EEA9752055C40886A84CA34134140986B10D453055C40A0F048452E13414090157D2456055C4090F323BD291341408024D0F356055C401877703B2A13414060A50E3457055C4050A369532C134140"
          },
          "shape1": null,
          "zmj": null,
          "dksl": 0,
          "dkbms": null,
          "modified_time": null,
          "createTime": null
      }
    ],
    "zzmj": 200,//种植面积
    "lzhs": 3,//流转户数
    "lzmj": 113,//流转面积
    "dbzzdksl": 110,//担保种植地块数量
    "dbzzmj": 2308.46,//担保种植地块面积
    "dbyzdksl": 0,//担保养殖地块数量
    "dbyzmj": 0  //担保养殖地块面积
  }
})
//客户信息验证列表
Mock.mock(/\/khyztj\/getkhyztjlist/, 'get', {
  "msg": "操作成功",
  "code": 0,
  "pagelist": {
      "total": 1,   // 客户总数
      "rows": [
          {
              "id": "1",
              "xmbm": "zs202012160001",     //项目编码
              "qhdm": "410325",    //区划代码
              "qhmc": "嵩县",     //区划名称
              "name": "张山",   //客户姓名
              "idcode": "4128221991061911121",   //证件号码
              "zytype": null,
              "zyty": "种植,养殖",     //种养类型
              "zyxx": "水稻(200.00),小麦(16.00),小牛(20)",    //种养信息
              "yzsl": 8,      //验证数量
              "yzsj": null,
              "yzsjtime": "2020-12-22",     //验证时间
              "yzsjstart": null,
              "yzsjend": null,
              "sbsj": null,
              "sbsjtime": "2020-12-16",     //申报时间
              "sbsjstart": null,
              "sbsjend": null,
              "zzslstart": null,
              "zzslend": null,
              "yzslstart": 0,
              "yzslend": 0,
              "cysl": 5,    //异常数
              "state": 1,      //状态编码
              "statename": "已验证",   //状态
              "nf": "2020",
              "khzytype": "03"
          }
      ]
  },
  "yccount": 1   //存在异常客户数
})
Mock.mock(/\/khxxyzjg\/getKhxxyzjgList/, 'post', {
  "msg": "success",
  "code": 0,
  "total": 2,
  "data": [
      {
          "yzsj": "2020-12-23",
          "yzjgms": "已验证",
          "idcode": "4128221991061911121",
          "yzbm": "1101",
          "qhdm": "410325",
          "yzlx": "重复担保验证",
          "zytype": "02",
          "name": "张山",
          "nf": "2020",
          "xmbm": "zs202012160001",
          "qhmc": "嵩县",
          "yzlxbm": "11",
          "yznr": "种养地块重复性检查（当年种植）",
          "yzjgxx": null
      },
      {
          "yzsj": "2020-12-23",
          "yzjgms": "已验证",
          "idcode": "4128221991061911121",
          "yzbm": "1101",
          "qhdm": "410325",
          "yzlx": "重复担保验证",
          "zytype": "02",
          "name": "张山",
          "nf": "2020",
          "xmbm": "zs202012160001",
          "qhmc": "嵩县",
          "yzlxbm": "11",
          "yznr": "种养地块重复性检查（当年种植）",
          "yzjgxx": null
      }
  ]
})